/**
 * 
 */
package com.nh.orderEntity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.nh.entity.BaseEntity;

/**
 * 项目名称：OrderingMiddleware
 * 
 * 类名称：FloorEntity
 * 
 * 类描述：楼层类
 * 
 * 创建人：李兴建
 * 
 * E-mail:lxj08193@163.com
 * 
 * 创建时间：2013-1-8 上午10:47:19
 * 
 * 修改人：李兴建
 * 
 * 修改时间：2013-1-8 上午10:47:19
 * 
 * 修改备注：
 * 
 * @version
 */
@Entity
@Table(name = "c_lc")
public class FloorEntity extends BaseEntity {
	private int fid;// 楼层id
	private String code;// 楼层编号
	private String name;// 楼层名称
	private String pinyin;// 楼层拼音码
	private String tableNum;// 桌号

	private List<TableLodgeEntity> tableList = new ArrayList<TableLodgeEntity>();

	/**
	 * @return the fid
	 */
	@Id	
	@Column(name="楼层id")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	public int getFid() {
		return fid;
	}

	/**
	 * @param fid the fid to set
	 */
	public void setFid(int fid) {
		this.fid = fid;
	}

	/**
	 * @return the code
	 */
	@Column(name="楼层编号")
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the name
	 */
	@Column(name="楼层名称")
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the pinyin
	 */
	@Column(name="楼层拼音码")
	public String getPinyin() {
		return pinyin;
	}

	/**
	 * @param pinyin
	 *            the pinyin to set
	 */
	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	/**
	 * @return the tableNum
	 */
	@Column(name="桌号")
	public String getTableNum() {
		return tableNum;
	}

	/**
	 * @param tableNum
	 *            the tableNum to set
	 */
	public void setTableNum(String tableNum) {
		this.tableNum = tableNum;
	}

	/**
	 * @return the tableList
	 */

	@Transient
	public List<TableLodgeEntity> getTableList() {
		return tableList;
	}

	/**
	 * @param tableList
	 *            the tableList to set
	 */
	public void setTableList(List<TableLodgeEntity> tableList) {
		this.tableList = tableList;
	}

}
